function ShowBoxes()
{
         $("#loginregister").slideToggle("slow");
}

 function showHide(id) {
	 var speed='slow';


        $('#tiles').fadeOut(speed);
        $('#welcome').fadeOut(speed);
         $('#gallerycontent').fadeOut(speed);
            $('#tilewrapper').fadeOut(speed);
         $('#wrapper').find('div').each(function(){
            if($(this).css('display')!='hidden' && $(this).attr('id')!=id) {
               $(this).css('z-index',0).fadeOut(speed);
            }

            $('#'+id).css('z-index',1).fadeIn(speed);
         });


      }





function ToggleTiles(divtomove)
{
         $("#"+divtomove).animate({"bottom" : "65%", "left" : "10%"},400);
  $('#welcome').fadeOut("slow");
          $('#tiles').find('div').each(function(){
		             if($(this).attr('id')!=divtomove) {
		                $(this).css('z-index',-1).animate({"left" : "-1200px"},400);
		             }

         });

         $("#"+divtomove+"info").show().animate({"width" : "40%", "height" : "40%"},400);

 }



function CloseTileInfo(tilename)
{
	  $("#"+tilename).fadeOut("fast");
	    $('#welcome').fadeIn("slow");
	  $("#keratin").animate({"bottom" : "10%", "left" : "10%"},400);
	  $("#nailart").animate({"bottom" : "10%", "left" : "35%"},400);
	  $("#bridal").animate({"bottom" : "10%", "left" : "60%"},400);
}

function CloseDiv(divname)
{

	  $("#"+divname).fadeOut("slow");
	  $("#galcontent").fadeOut("slow");
	  $("#welcome").fadeIn("slow");
	  $("#tiles").fadeIn("slow");
	  $("#tilewrapper").fadeIn("slow");

}
